package com.food.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;

import java.util.Date;

import com.baomidou.mybatisplus.annotation.TableId;

import java.io.Serializable;

import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 *
 * </p>
 *
 * @author
 * @since 2021-04-04
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("t_sale_log")
public class SaleLog extends PageParam implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 销售记录表
     */
    @TableId(value = "sale_log_id", type = IdType.ID_WORKER_STR)
    private String saleLogId;

    /**
     * 用户ID
     */
    private String userId;

    /**
     * 用户名
     */
    private String userName;

    /**
     * 用户类型
     */
    private String userType;

    /**
     * 食物ID
     */
    private String foodId;

    /**
     * 食物名称
     */
    private String foodName;

    /**
     * 价格
     */
    private Double price;

    /**
     * 时间
     */
    private Date createTime;

    private Integer amount;

    private Double totalPrice;

    private Double percentMoney;
}
